package srk.java.demo.swt1;

import org.eclipse.swt.SWT;
import org.eclipse.swt.layout.RowLayout;
import org.eclipse.swt.widgets.Display;
import org.eclipse.swt.widgets.Label;
import org.eclipse.swt.widgets.Layout;
import org.eclipse.swt.widgets.Shell;

public class Swt_row_layout_vertical_1_3 {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		Display display = new Display();
		Shell shell = new Shell(display);
		shell.open();

		new Label(shell, SWT.SEPARATOR|SWT.VERTICAL);
		Label label1 = new Label(shell, SWT.HORIZONTAL);
		label1.setText("< Label Seperator");
		
		new Label(shell, SWT.SEPARATOR|SWT.HORIZONTAL);
		Label label2 = new Label(shell, SWT.HORIZONTAL);
		label2.setText(" <-- Label HORIZONTAL Seperator");

		Layout layout = new RowLayout(SWT.VERTICAL);
		shell.setLayout(layout);
		shell.pack();// packs the display makes the window size small
		while (!shell.isDisposed()) {
			if (!display.readAndDispatch())
				display.sleep();
		}

	}

}
